<?php
/**
 * Introduction: 提现账号管理表  tarento_bank_account
 */

namespace Common\Model;


use Think\Model;

class TarentoBankAccountModel extends Model
{
    //定义数据库连接信息
    protected $connection;

    //定义表名
    protected $tableName = 'tarento_bank_account';

    /**
     * 初始化
     */
    public function _initialize()
    {

        $this->connection = C('Databaese');

    }

    /**
     * 获取账户类型列表
     * @return string[][]
     */
    public function getAccountsType()
    {
        $res = [
            [
                'name' => '支付宝',
                'code' => 'alipay',
                'logo' => 'http://wx.52ywy.com/images/other/bankLogo/alipay.png',
            ],
            [
                'name' => '中国银行',
                'code' => 'bc',
                'logo' => 'http://wx.52ywy.com/images/other/bankLogo/bc.png',
            ],
            [
                'name' => '中国建设银行',
                'code' => 'cbc',
                'logo' => 'http://wx.52ywy.com/images/other/bankLogo/cbc.png',
            ],
            [
                'name' => '中国工商银行',
                'code' => 'icbc',
                'logo' => 'http://wx.52ywy.com/images/other/bankLogo/icbc.png',
            ],
            [
                'name' => '中国农业银行',
                'code' => 'abc',
                'logo' => 'http://wx.52ywy.com/images/other/bankLogo/abc.png',
            ],
            [
                'name' => '招商银行',
                'code' => 'cmb',
                'logo' => 'http://wx.52ywy.com/images/other/bankLogo/cmb.png',
            ],
            [
                'name' => '中国邮政储蓄',
                'code' => 'psbc',
                'logo' => 'http://wx.52ywy.com/images/other/bankLogo/cmb.png',
            ]
        ];
        return $res;
    }

}